<template>
  <!-- <c-navbar
    fixed
    leftIcon="scan"
    leftText=""
    title=""
    @leftClick="openScan"></c-navbar> -->
  <Banner></Banner>
<!--  <CourseNav></CourseNav> -->
  <c-sub-nav
    text="开源项目"
    shadowText="OpenSource"
    extText="更多"
    @click="toMore"></c-sub-nav>
  <ProjectRec></ProjectRec>
</template>
<script setup>
import Banner from "./components/Banner.vue";
import CourseNav from "./components/CourseNav.vue";
import ProjectRec from "./components/ProjectRec.vue";
import { computed, getCurrentInstance, reactive, ref } from "vue";
import { onLoad, onShow, onReachBottom } from "@dcloudio/uni-app";
const { proxy } = getCurrentInstance();
const BASE_URL = proxy.$URL;
import request from "@/lib/request.js";
import useWxStore from "@/store/module/wx.js";
import useAuthStore from "@/store/module/auth.js";
const wxStore = useWxStore();
const authStore = useAuthStore();
const app = getApp();
//定义列表
const articles = ref([]);
const courses = ref([]);
// 构建生命周期操作
onLoad(() => {
  wxStore.doWxAuth();
});
function toMore(){
	uni.switchTab({
		url:'/custom/edu/pages/project/list'
	})
}
</script>
<style>
page {
  background-color: aliceblue;
}
</style>
